// DIB.h: interface for the CDIB class.
//
//////////////////////////////////////////////////////////////////////

#ifndef DIB_H
#define DIB_H

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <vector>
//#include "Block.h"
using namespace std;

class CDIB : public CObject  
{
protected:
	vector<BYTE> Location;
//	void BmpZoomOut();
//	void BmpZoomIn();
	void GetBmpRGBQUAD(HDC hDC);
	int PalEntriesOnDevice(HDC hDC);
	HPALETTE CreateBmpPalette();

//	BOOL OnDraw(CPaintDC & hdc);
	int nNumColors;
	BITMAPINFOHEADER BmpInfoHeader;
//	CDIB& CDIB::operator=(const CDIB& dib);
public:

	CDIB();
	virtual ~CDIB();
	void open(TCHAR* fileName);
	BOOL SaveBmp(CString fileName);
	vector<RGBQUAD> BmpRgb;
	vector<BYTE> BmpValue;
	int m_BmpWidth;
	int m_BmpHeight;
//	void EnableBlock();
	LOG4CPLUS_CLASS_DECLARE(_logger)
};

#endif 
